package com.baymax.custom.api;

import com.baymax.custom.annation.OpenExecutionTimeStatistics;
import com.baymax.custom.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * test
 *
 * @author hujiabin wrote in 2024/1/20 16:20
 */
@RestController
@RequiredArgsConstructor
public class TestApi {

    private final TestService service;

    /**
     * test
     *
     * @return test
     */
    @OpenExecutionTimeStatistics
    @GetMapping("/test")
    public String test() {
        service.step1();
        service.step2();
        service.step3();
        service.step4();
        return "test";
    }


}
